<%@ page language="java" import="com.scalar.chiptrack.utils.ConfigManager"%>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>

<html:html>
<chiptrack:checkLogon sourcePage="/costCodeSetup.do"/>
<%String chipTracContext = "/" + ConfigManager.getChipTracContext(); %>

<HEAD><TITLE>Scalarsoft - ChipTrac</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type=text/css rel=stylesheet>

<script src="<%=chipTracContext%>/jsp/includes/scripts/validations.js"></script>
<script language='javascript'>

	function searchCostCodes()
	{
		document.costCodeSetupForm.action = '<%=chipTracContext%>/costCodeSetup.do?action=search';
		document.costCodeSetupForm.submit();
	}

    function uploadFile()
	{
        document.costCodeSetupForm.action = '<%=chipTracContext%>/costCodeSetup.do?action=uploadFile';
		document.costCodeSetupForm.submit();
	}
</script>

<BODY bgColor="#ffffff" leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">
<!-- Top Header Start-->
<%@ include file="/jsp/includes/header.jsp" %>
<!-- Top Header End-->

<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
 <TR>
	<TD width='180' valign='top' background='<%=chipTracContext%>/jsp/includes/images/left_red_bg.gif'>

	<!-- Side Navigation start -->
	<%@ include file="/jsp/finance/finance_menu.jsp" %>
	<!-- end of the side navigations -->
    </TD>
	<TD bgcolor="#ffffff">
        <IMG height="9" src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width="8"></TD>
        <TD bgcolor="#ffffff"><IMG height=460 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width="2"></TD>
        <TD valign="top" width="100%">
        <IMG height="1" src="<%=chipTracContext%>/jsp/includes/images/clear.gif" width="500" border="0">
        <BR>

	<!-- BODY STARTS HERE -->

	<html:form name="costCodeSetupForm" type="com.scalar.chiptrack.finance.forms.CostCodeSetupForm"  enctype="multipart/form-data" action="/costCodeSetup.do">

    <table border="0" width="100%" align="center">
         <TR><TD colspan="4" class="NArialW" align="center">Cost Code Search</TD></TR>
        <tr><td align="left" class='NArialL'>&nbsp;<FONT id="errors" color='FF0000'></font></td></tr>
        <tr><td>
		<table border="0" width="60%" align="center">
             <tr><td colspan='4'><chiptrack:errors styleClass='NArialL'/></td></tr>
             <tr><td colspan='4'><chiptrack:info styleClass='NArialL'/></td></tr>

            <tr>
			<td width="10%" align = "right" class="NArialL">Year:&nbsp;&nbsp;</td>
			<td width="10%" align = "left" class="NArialL">
			    <nested:select property="year" styleClass="txfield">
				<html:options collection="yearList" property="value" labelProperty="label"/>
				</nested:select>
            </td>
			<td width="10%" align = "right" class="NArialL">Quater:&nbsp;&nbsp;</td>
			<td width="10%" align = "left" class="NArialL">
			    <nested:select size="1" property="quater" styleClass="txfield">
				<html:options collection="quarterList" property="value" labelProperty="label"/>
				</nested:select>
            </td>
			</tr>
			<tr><td colspan='4'><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></td></tr>
			<tr><td colspan='4' class="NArialL">&nbsp;</td></tr>
            <tr>
				<td colspan='4' align="center" class="NArialL">&nbsp;&nbsp;&nbsp;&nbsp;
				<a href="javascript:searchCostCodes()"><img border="0" src="<%=chipTracContext%>/jsp/includes/images/search.gif" width="53" height="17" onMouseOver="window.status='Click for Cost Code Search';return true" onmouseout="window.status='';return true" title="Click here to Search for Cost Code"></a>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				
                <a href="javascript:document.costCodeSetupForm.reset();"><img border="0" src="<%=chipTracContext%>/jsp/includes/images/reset.gif" onMouseOver="window.status='Click to Reset';return true" onmouseout="window.status='';return true" title="Click here to Reset"></a></td>
			</tr>
	    </table>
     </td></tr>
     <tr><td><img height=20 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif"></td></tr>
     		<tr>
				<td>
					<table>
						<tr>
							<td width="20%">&nbsp;&nbsp;&nbsp;&nbsp;</td>
							<td width="80%" align="left"  class="NArialL">Click here to <a href="javascript:uploadFile();"onmouseover="window.status='Click to upload Cost Code File';return true" onmouseout="window.status='';return true">Upload File</a></td>
						</tr>
					</table>
				</td>
			</tr>
    </table>
     </html:form>
    <!-- BODY ENDS HERE -->
	<BR><BR><BR></TD>
	<TD bgcolor="#ffffff"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
	</TR>
	</TABLE>

	<!-- Footer starts here -->
	<%@ include file="/jsp/includes/footer.jsp" %>
	<!-- footer end here -->
	</body>

</html:html>

